﻿package Message.Public
{
    import Framework.Serialize.*;

    public class SArenaPlayer extends Object
    {
        public var entityId:SEntityId;
        public var isFail:Boolean;
        public var mark:int;
        public var markInBattle:int;
        public var goldNote:int;
        public var playerInfos:Array;

        public function SArenaPlayer()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            this.entityId.__write(param1);
            param1.writeBool(this.isFail);
            param1.writeInt(this.mark);
            param1.writeInt(this.markInBattle);
            param1.writeInt(this.goldNote);
            SeqSArenaBasePlayerHelper.write(param1, this.playerInfos);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.isFail = param1.readBool();
            this.mark = param1.readInt();
            this.markInBattle = param1.readInt();
            this.goldNote = param1.readInt();
            this.playerInfos = SeqSArenaBasePlayerHelper.read(param1);
            return;
        }// end function

    }
}
